import request from '@/utils/request'

// 查询客户信息列表
export function listCustomers(query) {
  return request({
    url: '/ldomsystem/customers/list',
    method: 'get',
    params: query
  })
}

// 查询客户信息详细
export function getCustomers(customersId) {
  return request({
    url: '/ldomsystem/customers/' + customersId,
    method: 'get'
  })
}

// 新增客户信息
export function addCustomers(data) {
  return request({
    url: '/ldomsystem/customers',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateCustomers(data) {
  return request({
    url: '/ldomsystem/customers',
    method: 'put',
    data: data
  })
}

// 删除客户信息
export function delCustomers(customersId) {
  return request({
    url: '/ldomsystem/customers/' + customersId,
    method: 'delete'
  })
}
